<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>

    <base href="<%=basePath%>"/>
    <title>${title }</title>
</head>

<body>
<jsp:include page="header.jsp"></jsp:include>
<div class="block box">
    <div class="blank"></div>
    <div id="ur_here">
        当前位置: <a href=".">首页</a>
        <code> &gt; </code>
        预约清单
    </div>
</div>
<div class="blank"></div>
<div class="block table">
    <div class="flowBox">
        <h6>
            <span>预约清单</span>
        </h6>
        <form action="index/deletecart.action" method="post">
            <table width="99%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                    <th bgcolor="#ffffff">房源名称</th>
                    <th bgcolor="#ffffff">价格</th>
                    <th bgcolor="#ffffff">数量</th>
                    <th bgcolor="#ffffff">日期</th>
                    <th bgcolor="#ffffff">操作</th>
                </tr>
                <c:forEach items="${cartList}" var="cart">
                    <tr>
                        <td bgcolor="#ffffff" align="center" style="width: 300px;"><a
                                href="index/detail.action?id=${cart.goodsid }"
                                target="_blank"><img style="width: 80px; height: 80px;" src="${cart.image }" border="0"
                                                     title="${cart.goodsname }"/> </a> <br/> <a
                                href="index/detail.action?id=${cart.goodsid }" target="_blank"
                                class="f6">${cart.goodsname }</a></td>
                        <td align="center" bgcolor="#ffffff">￥${cart.price }元</td>
                        <td align="center" bgcolor="#ffffff">${cart.num }</td>
                        <td align="center" bgcolor="#ffffff">${cart.addtime }</td>
                        <td align="center" bgcolor="#ffffff"><a
                                href="javascript:if (confirm('您确实要移出预约清单吗？')) location.href='<%=basePath%>index/deletecart.action?id=${cart.cartid}'; "
                                class="f6">移除</a></td>
                    </tr>
                </c:forEach>
            </table>


            <table width="99%" align="center" border="0" cellpadding="5" cellspacing="0" bgcolor="#dddddd">
                <tr>
                    <td bgcolor="#ffffff">
                        <a href="index.jsp">
<%--                            <img src="themes/ecmoban_benlai/images/continue.gif" alt="continue"/>--%>
                            <button type="button" style="width: 107px;height: 39px;">继续看房</button>
                        </a>
                    </td>
                    <td bgcolor="#ffffff" align="right">
                        <a href="index/checkout.action">
<%--                            <img src="themes/ecmoban_benlai/images/checkout.gif" alt="checkout"/>--%>
                            <button type="button" style="width: 107px;height: 39px;">结算中心</button>
                        </a>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div class="blank"></div>

    <div class="blank5"></div>
</div>


<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>
